package Day04;

import java.util.Scanner;

public class Guessing {
    public static void main(String[] args) {

        Scanner scan= new Scanner(System.in);

        int num=(int) (Math.random()*1000+1);

        System.out.println("猜吧");

        int guess=scan.nextInt();

        while (guess!=num) {
            if (guess<num) {
                System.out.println("猜小了！,你是猪吗？");

            } else {
                System.out.println("猜大了！，蠢到极致了？");


            }

            System.out.println("接着猜吧，不中用的小垃圾。范围还是“100-1:”");
            guess = scan.nextInt();
        }
        System.out.println("让你蒙对了？真晦气！");


    }
}
